/**
 * 
 */
package org.andersonb.prototypes.jpa.entity;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * Classe utilitária para obter o E.M.
 * 
 * @author Anderson Bernardo
 * @since 19/05/2013
 */
public class JPAUtil {

	private static final EntityManagerFactory emf = Persistence
			.createEntityManagerFactory("common");

	/**
	 * @return uma instãncia de EntityManager.
	 */
	public static EntityManager getEntityManager() {
		return emf.createEntityManager();
	}
}
